<?php
namespace haibao\cms\model\data\behavior;

class UrlMonitorCount extends \haibao\cms\model\data\Base{
	const TYPE_HOUR = 1;
	const TYPE_DAY = 2;
	
	public $PV = 0;
	public $CK = 0;
	public $IpCount = 0;
	public $Time;
	public $UV = 0;
	public $Url;
	public $UrlHash;
	public $SiteId;
		
	public function __construct(){
		parent::__construct();
		$this->intField('PV', 'PV',true);
		$this->intField('CK', 'CK',true);
		$this->intField('IpCount', 'IpCount',true);
		$this->dateField('Time','Time',true);
		$this->intField('UV', 'UV',true);
		$this->intField('Url','Url',true);
		$this->intField('UrlHash','UrlHash',true);
		$this->intField('SiteId','SiteId');
		$this->setTableName('UrlMonitorCount');
	}
	
	public function setTableName($tableName){
		parent::setTableName($tableName);
	}
}

	